package tmp.inheritance;

public class B extends A {

	public double att1;
	
	public void sayHello(){
		System.out.println("B!!!");
	}
	
	public static void main(String[] args) {
//		abstract darf nicht mehr istanziert werden
//		A obj = new A();
//		obj.sayHello();
//		System.out.println(obj.att1);
		
		B obj2 = new B();
		obj2.sayHello();
		
		A obj3 = new B();
		obj3.sayHello();
		System.out.println(obj3.att1);

	}
}
